using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using MemberMgr.Data.BusinessObjects;
using MemberMgr.Data.Base;

namespace MemberMgr.Data.ManagerObjects
{
    public partial interface ItProductInlogManager : IManagerBase<tProductInlog, uint>
    {
		// Get Methods
		IList<tProductInlog> GetByPRODUCTID(System.UInt32 tProduct);
    }

    partial class tProductInlogManager : ManagerBase<tProductInlog, uint>, ItProductInlogManager
    {
		#region Constructors
		
		public tProductInlogManager() : base()
        {
        }
        public tProductInlogManager(INHibernateSession session) : base(session)
        {
        }
		
		#endregion
		
        #region Get Methods

		
		public IList<tProductInlog> GetByPRODUCTID(System.UInt32 tProduct)
        {
            ICriteria criteria = Session.GetISession().CreateCriteria(typeof(tProductInlog));
			
			
			ICriteria tProductCriteria = criteria.CreateCriteria("TProduct");
            tProductCriteria.Add(NHibernate.Criterion.Expression.Eq("Id", tProduct));
			
			return criteria.List<tProductInlog>();
        }
		
		#endregion
    }
}